package main

import (
	"devServer/Util"
	"log"
	"net/http"
)

func main() {
	http.Handle("/", Util.StaticFileServe())
	http.Handle("/ws", handleWebSocketConnection())
	http.Handle("/execute", Util.CorsMiddleware(http.HandlerFunc(executeShell)))
	http.Handle("/readLog", Util.CorsMiddleware(http.HandlerFunc(readLog)))
	http.Handle("/status", Util.CorsMiddleware(http.HandlerFunc(status)))
	log.Fatal(http.ListenAndServe(":9528", nil))
}
